package com.wing.sell.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 销售订单表
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sel_finished_order_detail")
public class FinishedOrderDetail extends BaseEntity<FinishedOrderDetail> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户id
     */
    private Long productDetailId;

    /**
     * 主单位
     */
    @TableField(exist = false)
    private String mainUnitName;

    /**
     * 关联物料数
     */
    private Long finishedId;

    /**
     * 销售数量
     */
    private Long selQuality;

    /**
     * 剩余数量
     */
    private Long selRemainQuality;

    /**
     * 审核人
     */
    private BigDecimal totalMoney;

    /**
     * 订单 单价
     */
    private BigDecimal price;

    /**
     * 库存
     */
    @TableField(exist = false)
    private BigDecimal haveQuantity;

    /**
     * 图片
     */
    @TableField(exist = false)
    private String fileUrl;

    /**
     * 产品编码
     */
    @TableField(exist = false)
    private String skuCode;

    /**
     * 产品规格
     */
    @TableField(exist = false)
    private String skuSpec;

    @TableField(exist = false)
    private String skuName;

    /**
     * 产品类型
     */
    @TableField(exist = false)
    private String productTypeName;

    /**
     * 最低价
     */
    @TableField(exist = false)
    private BigDecimal minPrice;

    /**
     * 建议最低单价
     */
    @TableField(exist = false)
    private BigDecimal suggestLowestPrice;

    /**
     * 已排产数
     */
    private Integer pcQuality;

}
